import request from '@/utils/request'

// 获取计费规则信息
export function getDeductionRules() {
  return request({
    url: '/deduction-rules/deduction-rules',
    method: 'get'
  })
}

// 修改使用期限和花费金额
export function updateTimeLimit(data) {
  return request({
    url: '/deduction-rules/upt-time-limit',
    method: 'post',
    data: data
  })
}

// 修改系数
export function updateRole(data) {
  return request({
    url: '/rule-set-array/upt-rules',
    method: 'post',
    data: data
  })
} 